package com.jack.payment.entity.generate.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.jack.payment.entity.common.CommonParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "三方绑定对象")
@JsonInclude(value=JsonInclude.Include.NON_NULL)
public class UserAuthModel extends CommonParam implements Serializable {
    @Schema(description = "关联的用户")
    private String user;
    @NotBlank(message = "重要信息缺失")
    @Schema(description = "密钥 或 三方id")
    private String secret;
    @Schema(description = "三方账号")
    private String thirdAccount;
    @Schema(description = "渠道")
    @NotBlank(message = "重要信息缺失")
    private Integer channel;
}
